﻿using cfg.Myskill;
using UnityEngine;

public class DashSkill:CloneBaseSkill
{
    public DashSkill(string skillName) : base(skillName)
    {
    }
    
    
    public override CloneController Clone(string prefab,Vector2 pos,int faceDir)
    {
        var  cloneController = base.Clone(prefab,pos,faceDir);
        var  controller =(cloneController  as PlayerCloneController);
        controller.SetCanHitBack(true);
        controller.PlayAttack();
        return cloneController;
    }
    
}